<?php

use App\Winged\Auth\Consts\Roles;

return [
    'menu'  => [
        [
            'parent_id' => 0,
            'order'     => 7,
            'title'     => '管理中心',
            'icon'      => 'fa-tasks',
            'uri'       => '',
            'service'   => 'system',
            'roles'     => [
                Roles::MASTER_SUPERADMIN,
				Roles::TENANT_ADMIN,
            ],
            'sub_menu'  => [
                [
                    'order'   => 4,
                    'title'   => '角色＆权限',
                    'icon'    => 'fa-user',
                    'uri'     => 'auth/roles',
                    'service' => 'system',
                    'roles'   => [
                        Roles::MASTER_SUPERADMIN,
                    ],
                ], [
                    'order'   => 7,
                    'title'   => '操作日志',
                    'icon'    => 'fa-history',
                    'uri'     => 'auth/logs',
                    'service' => 'system',
                    'roles'   => [
                        Roles::MASTER_SUPERADMIN,
                    ],
                ], [
                    'order'   => 8,
                    'title'   => 'artisan',
                    'icon'    => 'fa-terminal',
                    'uri'     => 'helpers/terminal/artisan',
                    'service' => 'system',
                    'roles'   => [
                        Roles::MASTER_SUPERADMIN,
                    ],
                ], [
                    'order'   => 9,
                    'title'   => 'mysql',
                    'icon'    => 'fa-terminal',
                    'uri'     => 'helpers/terminal/database',
                    'service' => 'system',
                    'roles'   => [
                        Roles::MASTER_SUPERADMIN,
                    ],
                ], [
                    'order'     => 3,
                    'title'     => '文章管理',
                    'icon'      => 'fa-edit',
                    'uri'       => 'common/article',
                    'service'   => 'users,evaluation,medicalcase,system',
                    'roles'     => [
                        Roles::TENANT_ADMIN,
                    ],
                ], [
					'order'     => 1,
					'title'     => '用户管理',
					'icon'      => 'fa-users',
					'uri'       => 'auth/users',
					'service'   => 'user',
					'roles'     => [
						Roles::MASTER_SUPERADMIN,
						Roles::TENANT_ADMIN,
					],
				], [
					'order'     => 2,
					'title'     => '科室管理',
					'icon'      => 'fa-users',
					'uri'       => 'common/departments',
					'service'   => 'user',
					'roles'     => [
						Roles::MASTER_SUPERADMIN,
						Roles::TENANT_ADMIN,
					]
				],[
                    'order' => 3 ,
                    'title' => '系统key配置',
                    'icon'  => 'fa-cog',
                    'uri'   => 'common/config/key',
                    'service' => 'users,evaluation,medicalcase,system',
                    'roles' => [
                        Roles::MASTER_SUPERADMIN,
                        Roles::TENANT_ADMIN,
                    ],
                ],[
                    'order' => 3 ,
                    'title' => '系统配置',
                    'icon'  => 'fa-cog',
                    'uri'   => 'common/config',
                    'service' => 'users,evaluation,medicalcase,system',
                    'roles' => [
                        Roles::MASTER_SUPERADMIN,
                        Roles::TENANT_ADMIN,
                    ],
                ],[
                    'order' => 3 ,
                    'title' => '微服务管理',
                    'icon'  => 'fa-cog',
                    'uri'   => 'common/config/microserve',
                    'service' => 'system',
                    'roles' => [
                        Roles::MASTER_SUPERADMIN,
                        Roles::TENANT_ADMIN,
                    ],
                ]
            ],
        ],
    ],

    'roles' => [
        [
            'slug' => Roles::MASTER_SUPERADMIN,
            'name' => '系统超级管理员',
        ], [
            'slug' => Roles::TENANT_USER,
            'name' => '租户后台用户',
        ], [
            'slug' => Roles::TENANT_ADMIN,
            'name' => '租户管理员',
        ],
    ],

];
